package tech.bmatch.photo.model;

import java.util.Date;

public class Photo {

    /**
     * 图片标识
     */
    private String id;

    /**
     * 图片名称
     */
    private String name;

    /**
     * 文件类型
     */
    private String type;

    /**
     * 文件大小(单位字节Byte)
     */
    private Long size;

    /**
     * 图像高度
     */
    private int height;

    /**
     * 图像宽度
     */
    private int width;

    /**
     * 文件存储路径
     */
    private String storePath;

    /**
     * 上传时间
     */
    private Date uploadDate;

    /**
     * 归属用户ID
     */
    private String userId;

    /**
     * 是否打了水印
     */
    private boolean watermark;

    public boolean isWatermark() {
        return watermark;
    }

    public void setWatermark(boolean watermark) {
        this.watermark = watermark;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getUploadDate() {
        return uploadDate;
    }

    public void setUploadDate(Date uploadDate) {
        this.uploadDate = uploadDate;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public String getStorePath() {
        return storePath;
    }

    public void setStorePath(String storePath) {
        this.storePath = storePath;
    }

    @Override
    public String toString() {
        return "Photo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", size=" + size +
                ", height=" + height +
                ", width=" + width +
                ", storePath='" + storePath + '\'' +
                ", uploadDate=" + uploadDate +
                ", userId='" + userId + '\'' +
                '}';
    }
}
